BigInt.opCast

T opCast(T: bool)() pure nothrow @nogc @safe const

Implements casting to bool.

T opCast(T: ulong)() pure @safe const

Implements casting to integer types.

Throws

ConvOverflowException if the number exceeds

the target type's range.

T opCast(T)() if (isFloatingPoint!T) @safe nothrow @nogc const

Implements casting to floating point types.

T opCast(T)() if (is(immutable T == immutable BigInt)) pure nothrow @nogc const

Implements casting to/from qualified BigInt's.

Warning: Casting to/from const or immutable may break type system guarantees. Use with care.