Remove KeyTypeToManaged as implicit cast is OK.