from typing import Any


def to_len(value: Any) -> int:
    """Get the length of a value. The value is converted to string and the
    number of characters in the resulting string is returned.

    Parameters
    ----------
    value: any
        Value whose length is returned.

    Returns
    -------
    int
    """
    return len(str(value))