Type casting is redundant, getConstraintViolations() returns set already :)