Cast primitive reference to byte pointer