c# change variable types

C#
// Ask user for fave number
Console.Write("Enter your favorite number!: ");
int faveNumber = Convert.ToInt32(Console.ReadLine());

// Turn that answer into an int
Source

Also in C#: