Comment out code that causes a ClassCastException