title: How to store array of strings into Realm instance using a Dictionary?
body: <p>I am new to Realm and having this issue.</p>
  
  <p>I am having a <code>Dictionary</code> like this</p>
  
  <pre><code>{
      firstName : "Mohshin"
      lastName : "Shah"
      nickNames : ["John","2","3","4"]              
  }
  </code></pre>
  
  <p>and a <code>class</code> like this</p>
  
  <pre><code>class User: Object {
      var firstName: String?
      var lastName: String?
      var nickNames: [String]?
  }
  </code></pre>
  
  <p>While I am trying to insert values it is throwing an exception as below</p>
  
  <p>Property 'nickNames' is declared as 'NSArray', which is not a supported RLMObject property type. All properties must be primitives, <code>NSString</code>, <code>NSDate</code>, <code>NSData</code>, <code>NSNumber</code>, <code>RLMArray</code>, <code>RLMLinkingObjects</code>, or subclasses of <code>RLMObject</code>.<br>
  See <a href="https://realm.io/docs/objc/latest/api/Classes/RLMObject.html" rel="noreferrer">https://realm.io/docs/objc/latest/api/Classes/RLMObject.html</a> for more information.<br>
  I have also tried </p>
  
  <pre><code>var nickNames =  NSArray()
  
  var nickNames =  NSMutableArray()
  </code></pre>
  
  <p>But not working.Do I need to make the Nickname model class and create a property as follow or there's a way to do this ?</p>
  
  <pre><code>var nickNames =  List&lt;Nickname&gt;()
  </code></pre>