title: How to save generic object to an array in swift
body: <p>I have on class </p>
  
  <pre><code>class SomeClass&lt;T&gt;: AsyncOperation, NetworkOperationProtocol {
  
      /// The resource model object that conforms to Parsable Response
      public typealias Resource = T
  }
  </code></pre>
  
  <p>I want to save instance of this class to an array, and want retrieve it later.
  How can I achieve this?</p>