add ulitity function for type intptr_t