= routing: replace usages of asInstanceOf in NumberMatcher, fixes #959