how to convert string type object to int in C# code example Example: string to int c# int x = Int32.Parse("1234");