Add Ptr::to_option method