using System; enum Cat { Mine, Yours, Other } enum Dog { Yours, Mine, Other } public class Test { public static void Main() { Cat cat = Cat.Mine; Object whoKnows = cat; Cat otherCat = (Cat)whoKnows; Dog secretCat = (Dog)whoKnows; Console.WriteLine(cat.GetType() + ", " + otherCat.GetType() + ", " + secretCat.GetType()); } }