void (Foo f, Bar b) { Bar b1 = (<warning descr="Cast of expression with type 'Foo' to incompatible interface 'Bar'">Bar</warning> )f; Foo f1 = (<warning descr="Cast of expression with type 'Bar' to incompatible class 'Foo'">Foo</warning>) b; }