from typing import Optional


def optional_float(value: Optional[int]) -> Optional[float]:
    """Parser for optional ints to floats."""
    if value is None:
        return None

    return float(value)