def can_cast(value, class_type):
    """
    Check if the value can be cast to the class_type, used in the parse tcl string function for tcl expressions like
    [Ada inputs 0] or [Ada alias robotblur]

    Args:
        value (object): The object we're attempting to cast.
        class_type (class): The class we're attempting to cast to.

    Returns:
        bool: If the value can be successfully cast
    """
    try:
        class_type(value)
        return True
    except ValueError:
        return False