title: What is the best way to check the type of a Scala variable?
body: <p>Is there a simple way to determine if a variable is a list, dictionary, or something else? Basically I am getting an object back that may be either type and I need to be able to tell the difference.</p>
  
  <p>In Python, we have "Type()", "Typeof()" that </p>
  
  <pre><code>scala&gt; val c: String = "Hello world"
  </code></pre>
  
  <p>Is there any way to determine : Typeof(c) to print : String </p>