Make a few implicit casts explicit.