title: Convert int to bool during JSON deserialization
body: <p>I am receiving a JSON object with RestSharp.
  Therefor I've written a custom Deserializer, which implements ServiceStack.Text:</p>
  
  <pre><code>public T Deserialize&lt;T&gt;(IRestResponse response)
  {
    return JsonSerializer.DeserializeFromString&lt;T&gt;(response.Content);
  }
  </code></pre>
  
  <p>The response is mapped to a POCO, which uses <code>System.Runtime.Serialization</code> to provide better mapping.
  That's working fine, but not for booleans.
  There are a lot of properties returned, which are 1 or 0 (ints).</p>
  
  <p>For example: <code>{ favorite: 1 }</code>
  <br></p>
  
  <p>The problem here is, I don't know how to convert this to a Boolean in my POCO.
  <br>
  This won't work (for sure):</p>
  
  <pre><code>[DataContract]
  public class Item
  {
    [DataMember(Name = "favorite")]
    public bool IsFavorite { get; set; }
  }
  </code></pre>
  
  <p>Any suggestions on how to get it working?</p>
  
  <p>I do not only want to know this for int &lt;=> bool, but for all type conversions in general.</p>