Remove unneeded cast to float