Validator: throw when invalid data types provided