using System;
public class Program
{
public static void Main()
object obj = 1;
Console.WriteLine(obj.GetType()); //will print System.Int32 because at Runtime the type is an int and not object
int? i = obj as int?; //can be cast to int, because it is an int
Console.WriteLine(i);
}