title: define implicit conversion from Int
body: <p>I am trying to define implicit conversions from scala ints to a custom Datatype.</p>
  
  <p>Here are my functions</p>
  
  <pre><code>object DatabaseInt extends ImplicitConverter [Int]{
  
      implicit def fromContent(content: Integer): DatabasePrimitive[Int] = DatabaseInt(content)
  
      override implicit def fromContent(content: Int): DatabasePrimitive[Int] = DatabaseInt(content)
  
      override implicit def toContent(el: DatabasePrimitive[Int]): Int = el.getContent
  }
  </code></pre>
  
  <p>This only seems works for scala primitive ints. Here is my test:</p>
  
  <pre><code> val x: DatabaseInt = 3 //does not work
   val y: DatabaseInt = Int(3) //does work
   val z: DatabaseInt = Integer.valueOf(3) //does not work
  </code></pre>