title: Extracting field from Some in Scala
body: <p>I know the fact that a Some object can be a None or one of the objects I passed. What is the ideal way of extracting a field from the Some object given the fact that it is not None?
  I have made a class 'At' that has 'date' as one of its fields. Since the Some class has a mixin with Product trait, the following works fine:</p>
  
  <pre><code>(An object with return type Some(At)).productElement(0).asInstanceOf[At].date
  </code></pre>
  
  <p>But is there an ideal way to do this? </p>