Now this code works from a value expression: def myvalue(incoming): import ledger x = ledger.Value("100.23") print x.type() return incoming + x