Create a PR for pimcore/pimcore to provide value objects for basic types (positive integer, positive integer-array, path string,...) with validation directly in the constructor
Use those value objects in our search models instead of our custom approach