convert objects to pointers