C# code to deserialize an object.  Set return type to be type of object you want returned.