[4.2] Routing : $parameters cast too early

`$parameters` doesn't need to be cast that early