Type Conversion
Type conversion changes a value from one type to another.
int i = 100;double d = i; // implicitint j = (int)d; // explicitConsole.WriteLine($"i={i}, d={d}, j={j}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”i=100, d=100, j=100