I stumbled across this Wikipedia article about fast inverse square root calculations, and there were a few lines that interested me in the example code.
y = number;
i = * ( long * ) &y;
i = 0x5f3759df - ( i >> 1 );
y = * ( float * ) &i;
This is written in C and makes sense in that context, but is there a way to achieve the same effect in Java without true pointers?