As the subject says, the following code:
int* pi = &123;
IntPtr ptr = (IntPtr)pi;
is highlighted by ReSharper - "Cannot cast expression of type int* to type
IntPtr". While this is technically correct, there is an implicit conversion
from any pointer type to void*, and thus an indirect (and legal) conversion
from int* to IntPtr. I suspect this may be a general case of ReSharper
missing valid implicit conversions.