Add a DO_CASTS macro.
Forgot to commit this in previous one.