Type Casting - Example in C#

This is the example program for CASTING.
Note that C# automatically converts the values implicitly.
using System;
using System.Collections.Generic;
using System.Text;


namespace forgetCode
{
    class Program
    {
        static void Main(string[] args)
        {

            int iNumber = 100;
            long aLong1 = (long)iNumber;
            long aLong2 = (long)100;

            double dNumber= iNumber;
            


            Console.WriteLine(iNumber);
            Console.WriteLine(aLong1);
            Console.WriteLine(aLong2);

            Console.WriteLine(dNumber);


        }

      
    }
}



Output:
100
100
100
100