from typing import Any


def truthy(obj: Any = None):
    """Check if an object or string represents true."""

    if obj is None or obj is False or obj == 0:
        return False

    if obj is True:
        return True

    if isinstance(obj, str):
        return obj.lower() in ["true", "yes", "t", "y", "1"]

    if isinstance(obj, (int, float)):
        return obj != 0

    return False