Convert to BigInt.
BigInt toBigInt() => (sign == LogicValue.one ? BigInt.from(-1) : BigInt.from(1)) * magnitude.toBigInt();