def convert_value(value):

    """
    Converts the input value (as a string) to its native type.
    """

    # strings are treated separately in parse_card()
    if value == "T":
        value = True
    elif value == "F":
        value = False
    elif "." in value:
        value = float(value)
    else:
        value = int(value)

    return value