title: RestSharp - Unable to cast object of System.String to type System.Generic.IDictionary
body: <p>I am new to RestSharp. I have a Restful Service writtein in python which returns a Json message. I wrote a C# client using RestSharp to deserialize the json message to object.  </p>
  
  <p>The response content is 
  "\"[{\\"coupon\\": 4.5, \\"cusip\\": \\"912810QB7\\", \\"currface\\": 1000000, \\"origface\\": 1000000}]\"" </p>
  
  <p>response.data is null. </p>
  
  <p>The inner Exception in response object is
  "Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IDictionary`2[System.String,System.Object]'."</p>
  
  <p>Below are my code:</p>
  
  <pre><code>public class QuartzServiceAdapter
  {
      const string BaseUrl = "http://localhost:7666/ahs/";
  
      public QuartzServiceAdapter() { }
  
      public T Execute&lt;T&gt;(RestRequest request) where T : new()
      {
          var client = new RestClient();
          client.BaseUrl = BaseUrl;
          var response = client.Execute&lt;T&gt;(request);
          return response.Data;
      }
  
      public List&lt;RootObject&gt; GetBond()
      {
          var request = new RestRequest(Method.GET);
          request.OnBeforeDeserialization = resp =&gt; { resp.ContentType = "application/json"; };
          request.Resource = "getabond";
          //request.RootElement = "RootObject";
          return Execute&lt;List&lt;RootObject&gt;&gt;(request);
      }
  }
  </code></pre>
  
  <p>i created the following object using <a href="http://json2csharp.com/" rel="nofollow">http://json2csharp.com/</a></p>
  
  <pre><code>public class RootObject
  {
      public double coupon { get; set; }
      public string cusip { get; set; }
      public int currface { get; set; }
      public int origface { get; set; }
  }
  </code></pre>
  
  <p>Any ideas on why the deserialization is failing?
  Thank you in advance!</p>