Make implicit casts explicit, eliminate msvc warnings.