I don't think any sort of foam can handle water pressures as the mast goes under. Even a full sealed mast may have to take a huge pressure if the boat pitch poles and goes nearly full turtle before the bouyancy brings it back up.
We sealed Paulw's mast with epoxy foam.