graydon/rust — comment on commit 5b0c103b39e5392c267e66f8aad380c34c60f5b5
File:  line 0
By marijnh:

Casting a pointer is safe -- only when you dereference it will odd things start happening. It works the same way as all other `as` casts, you say 'myptr as *int`, and it casts from another type of unsafe pointer (or a native type) to an `*int`.