Remove redundant type conversion