Fix MSVC build

Note: The unit test was technically incorrect for all platforms but passes due to implicit casting