c# cast to type stored in type variable code example
Example: c# change variable types
// Ask user for fave number
Console.Write("Enter your favorite number!: ");
int faveNumber = Convert.ToInt32(Console.ReadLine());
// Turn that answer into an int