I've got a C++ method that has an intptr_t parameter, and I'm attempting to pass to this a System.IntPtr value.  Now SWIG converts the intptr_t to a SWIGTYPE_p_intptr_t which of course can not be cast from a System.IntPtr .  I've spend a couple of hours or so now trying to figure how typemaps would solve this issue, but I'm not having a lot of luck.  Any help would be greatly appreciated!