Is My Highly Unsafe Code Correct? In Place Mapping a Vector

It's better practice to call .cast() on pointers instead of as _ because that catches changes in mutability.

1 Like