def from_bytes(data: bytearray) -> int:
    """
    Retrieves an integer value from a bytearray.

    :param bytearray data: Input bytes.

    :return: Value.
    :rtype: int
    """
    return int.from_bytes(bytes=data, byteorder='big', signed=False)