Remove unnecessary conversions.