Add Function cast to fix EnrichersTest