Hopefully, this won't happen to you, but if it does, there is a way to get it out. Invert the pan and tap it firmly on the top and sides. Failing that, you can just leave the cake upside down, and hopefully, this is where gravity comes in!