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.