private static T GetCastedByteArray <T>(object v) { byte[] arr = Conversions.GetCastValue <byte[]>(v); return(Serializer.Deserialize <T>(arr)); }
private static T GetCastedXml <T>(object v) { string xml = Conversions.GetCastValue <string>(v); return(Serializer.XmlDeserialize <T>(xml)); }