``` foo(first : SomeObj = validSomeObj()) : Bar =...
# getting-started
d
Copy code
foo(first : SomeObj = validSomeObj()) : Bar = foo(first.toString())
foo(first : String = validSomeObj().toString())  : Bar = Bar(first)
looks like this
o
The code you give doesn't help to tell you what is the best solution. BTW I think you declare the default value only for one of the 2 functions.