Converting object to string

Sometimes I come across something I think: what is the best way to convert this (this is Oxidized code). An array of strings is first presented in a plain object (converted from sample Java SOAP code). Of course it doesn’t compile the second line.

    var &result: Object := Object(envelope.getResponse());
    var results: array of String := String[](&result);

This was the original code:

           Object result = (Object)envelope.getResponse();
            String[] results = (String[])  result;

In my win32 days I used the Stringlist for this, but that’s not appropriate anymore :slight_smile: Somehow I think I overlook a very obvious solution…

What’s wrong with this?

  var &result: Object := envelope.Response;
  var s: array of String := array of String(&result);

Strangely enough that didn’t compile when I tested it. But now it does. Not having my day :slight_smile: