anrcore: Remove unused variable

This unsafely casts a pointer to an int. Remove it since it is unused.
anrcore: Avoid casting pointer to int for printf

Just use %p
anrcore: Use inline functions for type checking