Remove unnecessary floating point casts