public static object Value(this PList.IPListElement element)
        {
            object value = null;

            switch (element.Tag)
            {
            case "string": value = element.ToType <PListString>().Value; break;

            case "date": value = element.ToType <PListDate>().Value; break;

            case "boolean": value = element.ToType <PListBool>().Value; break;
            }

            return(value);
        }
 public static T ToType <T>(this PList.IPListElement element) where T : PList.IPListElement
 {
     return((T)element);
 }