// Test valid casts

class Main {
	void main() {
		C1 a, x;
		C2 c,d;
		C4 b,f;
		Object o;
		c = new C2();
		a = new C1();
		b = new C4();
		f = new C4();
		
		x = (C1) b;
		o = (Object) f;
	}
}

class C1 {}

class C2 extends C1{}

class C3 extends C2{}

class C4 extends C3{}

