Get rid of unnecessary float cast