Fix an MSVC x64 compiler warning, "warning C4312: 'type cast': conversion from 'unsigned int' to 'int *' of greater size".
The warning (which is valuable) is simple to avoid: widen to uintptr_t, then cast. I'm additionally using C++ casts for clarity.