Supoort for type-casting