title: Play2.0 Scala: Extracting data from config as a String
body: <p>Using Scala, in a Play 2.0 project, I am trying to grab data from a config file.</p>
  
  <p>At present I use the following code to extract a String:</p>
  
  <pre><code>val foo = Play.current.configuration.getString("foo")
  </code></pre>
  
  <p>I had expected to get a <code>String</code> object back, but instead an <code>Option[String]</code> object is returned.</p>
  
  <p>I cannot find any Java docs describing the <code>Option[T]</code> object and calling the <code>toString()</code> returns <code>Some( foo )</code>.</p>
  
  <p>The same happens when using the configuration methods to extract <code>Boolean</code> and <code>Int</code> values from the config - ie, <code>Option[Boolean]</code> and <code>Option[Int]</code> are returned.</p>
  
  <p>Can anyone explain what this <code>Option[T]</code> object is and how I can access the value I want in the form that the <code>application</code> method call implies it will be returned?</p>