class Test { [B][I]static [/I]class Foo { public int i = 3; }[/B] public static void main(String args[]) { Object o = (Object)new Foo(); Foo foo = (Foo)o; System.out.println("i = " + foo.i); } }