Remove unneccessary type conversion