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