title: know type of variable in Swift
body: <p>How can I identify the type of variable in Swift. For e.g. if I write </p>
  
  <p><code>struct RandomStruct....</code> - the type should give me <code>struct</code> and not <code>RandomStruct</code></p>
  
  <p>or if I write <code>class RandomClass...</code> the type should be <code>class</code> and not <code>RandomClass</code>.</p>
  
  <p>I have tried using <code>Mirror.subjectType</code> and <code>type(of:)</code> both of which gives output as <code>RandomStruct</code> and <code>RandomClass</code></p>