Remove redundant type cast