Cubed ham is arranged in the bottom of a casserole dish, topped with creamed corn and briefly heated in the oven. Mashed potatoes are spooned on top, and then the pie is returned to the oven. Just before serving, it 's dotted with butter and slipped under the broiler to brown.