Fixes MSVC warnings for double->float and float->int conversion