Remove unnecessary type conversion