public class MainClass { enum Spice { A, B, C, D; } public static void main(String[] argv) { Spice sp = Spice.A; Object ob = (Object) sp; } }