from typing import SupportsRound


def iround(x: SupportsRound) -> int:
    """Rounds x and converts to int.
    Because round(np.float32) returns np.float32 instead of int.
    """
    return int(round(x))