Newtonsoft Json - Deserialize - Custom mapping if property name is same but property type is different
<p>I'm calling the REST API to get the object as ResponseData.</p>

<pre><code>CustomField CustomFieldObj = JsonConvert.DeserializeObject&lt;CustomField&gt;(ResponseData.ToString());
</code></pre>

<p>// Class defination (<code>DataType</code> is of type <code>int?</code>)</p>

<pre><code>public class CustomField {
 public int? DataType {get; set;}
}
</code></pre>

<p>API is having the object like this (<code>DataType</code> is of type <code>string</code>)</p>

<pre><code>public class ResposeData {
     public string DataType {get; set;}
    }
</code></pre>

<p>Now, <code>JsonConvert.DeserializeObject</code> is throwing the error because of different data type (string cannot be converted to int).<br>
So, how can I ignore these properties with different data types while deserializing?</p>