string userInput = Console.ReadLine(); int convert; Int32.TryParse(userInput, out convert); // Converting String to int
It is a predefined method used to convert String to its equivalent 32-bit signed Integer