def types_validation!(value)
      raise ValidationError if types && types.none? { |type| type === value }
    end
def types_validation!(value)
      raise ValidationError if types && types.none? { |type| type === value }
    end
rubocop:disable Style/CaseEquality:
 Check's the value's type from inside the finalized object.