object CreateObject(Type t) { return System.Activator.CreateInstance(t); } protected void Page_Load(object sender, EventArgs e) { object o = CreateObject(typeof(Int32)); Response.Write(o.ToString()); }