Implicit Conversion
Implicit conversions happen automatically when no data loss occurs.
int i = 123;long l = i; // int to longdouble d = i; // int to doubleConsole.WriteLine($"long: {l}, double: {d}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”long: 123, double: 123