Validator cast test.