title: Cannot implicitly convert type 'DevExpress.Xpo.XPCollection'
body: <p>I am trying to create a procedure which return an XPcollection like so:</p>
  
  <pre><code>    public XPCollection&lt;Txn&gt; RetrieveTransactions()
      {
          if (ObjectSpace is DevExpress.ExpressApp.Xpo.XPObjectSpace)
          {
              XPCollection txns = (XPCollection)ObjectSpace.CreateCollection(typeof(Txn));
              if (txns.Count == 0)
              {
              }
              return (XPCollection&lt;Txn&gt;)txns;
          }
  
      }
  </code></pre>
  
  <p>but I am getting the error below:</p>
  
  <pre><code>    Error   1   Cannot implicitly convert type 'DevExpress.Xpo.XPCollection' to 'DevExpress.Xpo.XPCollection&lt;FX.Module.BusinessObjects.fxdb.Txn&gt;'
  </code></pre>