Removed lots of unnecessary casts to float of the Math methods. Also removed some other minor implicit casts