def generateTypeConverter(name, cache, typeConverter):
    """
    Type converter

    Args:
        name (str):
        cache:
        typeConverter:

    Returns:
        lambda: Function to convert the type
    """
    return lambda value: typeConverter(name, value, cache)