Use explicit casting in ctype macros