A much better solution is to get 2 ratchet straps, fold the mattress in half and strap it and tighten the ratchets. That compresses it and you can get it right out, no issue. Same with putting in a new one. Strap it.
Learned that the hard way years ago. I think they build TC's with the mattress's in them before they install the cabinets and stuff....