If it sticks you likely didn't grease the pan well enough or allow the cake to cool in the pan long enough before trying to remove it.