title: JSON to realm object mapping issue iOS Swift
body: <p>creating new model object by passing a dictionary just like this</p>
  
  <pre><code>let article = Article(value: json)
  </code></pre>
  
  <p>the Article object is </p>
  
  <pre><code>import RealmSwift
  import Foundation
  
  class Article: Object {
     dynamic var id = 0
  </code></pre>
  
  <p>and i get this error every time</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception 'RLMException', reason: 'Invalid value '173' for property 'id''</p>
  </blockquote>