You can use a C-style pointer reinterpret cast like this:uint test(float f) { return *cast(uint*)&f; } Make sure that source and destination types have the same size.
Hey, great! :-)
You can use a C-style pointer reinterpret cast like this:uint test(float f) { return *cast(uint*)&f; } Make sure that source and destination types have the same size.
Hey, great! :-)