def enum_names_aslist(c, lower=True):
    """Get an Enum class as a list of enum names.

    Args:
        c (:class:`Enum`): Enum class.
        lower (bool): True to get names as lower case; defaults to True for
            easier comparison with other strings.

    Returns:
        List: List of enum names.

    """
    return [e.name.lower() if lower else e.name for e in c]