Convert java.lang.String to Scala string
It's not a wrapper, but actually java.lang.String. No need in additional hassle:
» touch 123
» scala
...
val foo = new java.io.File("123")
// java.io.File = 123
// Get name is a java api, which returns Java string
foo.getName.toInt
// res2: Int = 123
java.lang.String
is implicitly amended with Scala specific string methods so no manual conversion should be necessary.