from typing import Union
import math


def round_to_block(length: Union[int, float], block_size: int) -> int:
    """
    Rounds the given length to the nearest (larger) multiple of
    the block size.
    """
    if isinstance(length, int) and (length % block_size == 0):
        return length

    return int(math.ceil(length / block_size)) * block_size