def get_enum_int(quantity, label):
    """Returns the integer index value of an enumerated data type
    :param quantity: tango_simlib.quantities.Quantity
        The quantity object of a DevEnum attribute
    :param label: str
        The desired value in enum list
    :return: Int
        Current integer value of a DevEnum attribute
    """
    return quantity.meta["enum_labels"].index(label)