title: Declare an array of Int in Realm Swift
body: <p>How can I declare an array of integers inside <code>RLMObject</code>?</p>
  
  <p>Like :</p>
  
  <pre><code>dynamic var key:[Int]?
  </code></pre>
  
  <p>Gives the following error :</p>
  
  <pre><code>Terminating app due to uncaught exception 'RLMException', reason: ''NSArray' is not supported as an RLMObject property. All properties must be primitives, NSString, NSDate, NSData, RLMArray, or subclasses of RLMObject. See https://realm.io/docs/objc/latest/api/Classes/RLMObject.html for more information.'
  </code></pre>