from typing import Any


def to_str(val: Any) -> str:
    """To string.

    Args:
        val (Any): Value

    Returns:
        str: String.
    """
    return '' if val is None else val if isinstance(val, str) else str(val)