BigInt.toLong

long toLong() const pure @safe

Converts BigInt to long.

This is a convenience method that delegates to opCast!long.

Returns

The BigInt value as a long

Throws

ConvOverflowException if the value doesn't fit in a long