pub(crate) unsafe fn cast_slice<A: Copy, B: Copy>(a: &[A]) -> &[B]
Cast &[A] into &[B].
&[A]
&[B]
This is try_cast_slice but will panic on error.
try_cast_slice