Apparently removing that type assertion makes a difference
Using a slightly optimised type for matching