title: How to check if the object returned is Array in Swift
body: <p>I have a declaration.. </p>
  
  <pre><code>var cabResults = Dictionary&lt;CabType, [CabResult]&gt;()
  </code></pre>
  
  <p>Now I want to check if the object is present in the dictionary for a particular key.. which can be don by </p>
  
  <pre><code>if self.cabResults[currentCabType] != nil
  </code></pre>
  
  <p>Now I also want to check if the object returned by  <code>self.cabResults[currentCabType]</code> is of type <code>[CabResult]</code></p>
  
  <p>How can I get this..?</p>