using System; public class Test { public static void Main() { object s, s2; s = Convert.ToInt16(10); s2 = 10; Console.WriteLine("Types: {0} and {1}", s.GetType(), s2.GetType()); Console.WriteLine("s as Int16 (works): {0}", (Int16)s); Console.WriteLine("s2 as Int16 (error): {0}", (Int16)((Int32)s2)); } }