Make type casts safer.