Преобразовать Int32
using System;
int variable = Convert.ToInt32(otherVariable);
TheNNation
using System;
int variable = Convert.ToInt32(otherVariable);