Add "equals" and "getCptr" methods to deal with pointers

Add "equals" to compare between pointers
Add "getCPtr" to retrieve pointer value