public static string GetVal(Dictionary<String, Object> map, string key) { object v; map.TryGetValue(key, out v); return (string)v; }