from typing import Optional
from typing import Any


def nullable_str(value: Optional[Any]) -> str:
    """Convert values to a string while converting None to 'null'"""
    if value is None:
        return 'null'
    else:
        return str(value)