string _strNumber = "354737"; int _intNumber; try{ _intNumber = Convert.ToInt32(strNumber); }catch { _intNumber = 0; //или любая другая обработка/ }