score:2

Accepted answer

Just do this:

implicit def stringFromFoo(foo: Foo): String = foo.toString

Related Query

More Query from same tag