An article on the Oracle Java Community sites gives as an example (for a JPA Converter, but that\'s not relevant, I guess) the following method:
public Boole
Such cast is completely unnecessary. I can imagine that it was before
public Boolean convertToEntityAttribute(Object y) { String val = (String) y; ... }
But later the argument type was changed to String and the author simply forgot to remove the cast.
String