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