Revert removing .deref() for mem::transmute()