Add Function cast to fix Enrichers issue