Clarified ClassCastException in javadoc