class Test def main is shared i as int = 5 o as Object = i to Object # not strictly necessary to cast, but a useful test CobraCore.noOp(o) class Foo # using `to` in an expression used to initialize a variable var _x = 0 to decimal var _o = 'aoeu' to Object def bar .takeDecimal(_x) .takeObject(_o) def takeDecimal(d as decimal) pass def takeObject(o as Object) pass