from typing import SupportsFloat


def is_num(obj: SupportsFloat) -> bool:
    """Return True if `obj` can be casted to float."""
    try:
        float(obj)
    except ValueError:
        return False
    return True