public static bool AsUInt64(this BigInt self, out ulong ret) { if (self >= UInt64.MinValue && self <= UInt64.MaxValue) { ret = (UInt64)self; return true; } ret = 0; return false; }