remove redundant type cast