pour the baked beans into an ovenproof dish and spread the corned beef mixture over the top. spoon on the mashed potato mixture, spreading it out evenly. sprinkle the cheese over the surface and bake for 30 minutes.