using System;
public class Program
{
public static void Main()
// You can only unbox value which has already been boxed
// else it will throw exception
int i = 56;
object obj = i;
var unboxedi = (int)i;
Console.WriteLine(i);
Console.WriteLine(obj);
Console.WriteLine(unboxedi);
object o = "";
var unboxed = (int)o;
}