class Test def main is shared t as Object = 5 u as int? = t to int? assert u==5 z = Test() to Test? # .warning. just use assert z