string userInput = Console.ReadLine(); int convert; Int32.TryParse(userInput, out convert); // Converting String to int