Make implicit casts explicit (fixes MSVC errors).