using System;
public class Program
{
public class TypeA
}
public static void Main()
TypeA t = new TypeA();
if (t is TypeA)
TypeA a = (TypeA)t;
Console.Write("no error here");