I line my pan with parchment for these types of recipes. I cut the parchment to fit and leave an overhang so I can just pull it up and out. No sticking, easy cleanup. If you have trouble getting parchment to fit just right, wet it a little bit. Makes it more pliable and you can adjust it better.