Commented @EqualsAndHashCode annotation cause they are causing ClassCastExceptions