def boolean_to_int(value: bool) -> int: if value: return 1 else: return 0