(MSVC) Another casting fix