There are cactus gloves, or I've seen people use tongs for smaller cacti. My go to is to use a towel though. Loosen the root ball. Then, I fold/roll towel lengthwise so it's nice and thick and then just loop it around cactus to pick it up gently out of current pot.