from typing import Any
from typing import Optional


def parse_float(number: Any) -> Optional[float]:
    """Safely convert an object to float if possible, else return None."""

    try:
        return float(number)
    except Exception:
        pass
    return None