using System.Collections.Generic;
public class MyComplexType { public string Text { get; set; } }
public static void Main()
var d = new Dictionary<string,object>
{ "MuComplexType", new MyComplexType { Text = "Bar" } }
var s = d.Values.OfType<string>().Single();
var i = d.Values.OfType<int>().Single();
var o = d.Values.OfType<MyComplexType>().Single();
Console.WriteLine(o.Text);