from typing import Any
from typing import Callable


def nullable_convert(value: Any, func: Callable[[Any], Any]) -> Any:
    """Convert a value given a conversion function, while silently handling an input of None."""
    if value is None:
        return value
    else:
        return func(value)