public static int ToInt32(string s, int radix) { var digit = ToUInt64(s, radix); CheckDigitOverflow(digit, Int32.MaxValue); return (int)digit; }