Fix float cast warnings.