title: error: expected class or object definition
body: <p>I have this (smart code):</p>
  
  <pre><code>import com.mongodb.casbah.Imports._
  import com.mongodb.casbah.util.bson.conversions._
  RegisterJodaTimeConversionHelpers() //error
  
  object Main {
    def main(args: Array[String]) {
      val connection = MongoConnection()
    }
  }
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>error: expected class or object definition
  RegisterJodaTimeConversionHelpers()
  </code></pre>
  
  <p>I have to use this <a href="http://api.mongodb.org/scala/casbah/current/tutorial.html" rel="noreferrer"><code>RegisterJodaTimeConversionHelpers()</code></a> (2.2. Briefly: Automatic Type Conversions), but there's always this error message. Any ideas?</p>