Rule M5-2-9 (required, implementation, automated)

A cast shall not convert a pointer type to an integral type.

See MISRA C++ 2008 [7] Note: Obligation level changed.