from typing import Optional
from typing import Union


def seconds_to_minutes(seconds: int, round: Optional[bool] = True) -> Union[int, float]:
    """Convert seconds to minutes."""
    return int(seconds / 60) if round else seconds / 60