Depends on the type of soap. I would not microwave triple-milled soaps. Double boiler is safe for most. Grating and just tamping it tight in the new container is probably the safest, but...