Cast through intptr_t, ISO C++ requires it.