Use macro function instead of macro class, which is not supported in Haxe 3.
Fix bugs when convert Int64 to Float.