title: Convert the value in an Option to another type
body: <p>I'm trying to do something that seems like it should have a straight forward syntax/function in scala.  I just don't know what that is.  I'm trying to convert the contained value of an Option (if it is not None) to another type.</p>
  
  <p>Simply I want to know what the code would be if I wanted to implement the following function </p>
  
  <pre><code>def myFunc(inVal:Option[Double]):Option[BigDecimal] = {
      //Code I need goes here
  }
  </code></pre>
  
  <p>Note: I am not actually implementing this function, it just is the clearest way for me to demonstrate what I need</p>