Cast ptr to caddr_t