Check out example codes for "c# change variable types". It will help you in understanding the concepts better.

Code Example 1

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

// Turn that answer into an int

Learn ReactJs, React Native from akashmittal.com