Fix float cast