from typing import Any


def _checked_positive(value: Any) -> Any:
    """Ensure a value is positive"""

    if float(value) < 0:
        raise ValueError(f'Value must be positive. Had {value}')

    return value