Fix for casting/subclassing in MetricRegistry

No match.