Remove an unnecessary cast::transmute call.