// "Replace with '(Integer)'" "true-preview" class X { void test(Object obj) { if(Integer.class.isInstance(obj)) { System.out.println(Integer.class.cast(obj)); } } }