Use switch expressions in QueryParams