from typing import Dict
from typing import Any


def clean_dict_values(dic: Dict[str, Any]) -> Dict[str, Any]:
    """Convert booleans and lists to strings in a dict."""
    for key, value in dic.items():

        if isinstance(value, bool):
            # convert a boolean to a string
            dic[key] = str(value).lower()

        elif isinstance(value, list):
            # convert a list to a string
            dic[key] = ",".join([str(i) for i in value])

    return dic