code: def to_vararray(var_instance, bounds):
          
          assert isinstance(var_instance, SymbolVAR)
          from symbols import BOUNDLIST
          from symbols import VARARRAY
          assert isinstance(bounds, BOUNDLIST)
          var_instance.__class__ = VARARRAY
          var_instance.class_ = CLASS.array
          var_instance.bounds = bounds
          return var_instance
docs: Converts a var_instance to a var array one