using System;
public class Program
{
public static void Main()
object something = "Hello";
Console.WriteLine(something as string); // Hello
Console.WriteLine(something as int?); // null
// This does NOT compile:
// destination type must be a reference type (or a nullable value type), Uncomment to see error
// Console.WriteLine(something as int);
}