using System;
public class Foo
{
public string Name { get; set; }
}
public class Program
public static void Bar( object obj)
var pew = (Foo)obj;
Console.WriteLine(pew.Name);
public static void Main()
Foo foo = new Foo();
foo.Name = "blah";
Bar(foo);