Throw in some C-style casts, in an attempt to eventually get rid of -fpermissive