@Parvathy Thanks, for the insight.
Is it possible to manipulate myArray variable so that when its printed directly, its gives out the same output?. The goal is to make the variable print out the array.
The above syntax from the screenshots stores ID column of an datatable in an Array variable and you are using String.Join to print the array variable in Log Message or Message Box.
Why are you trying to convert it to an array then back to a string? You already have it as a string. Just store it as a string in one variable and an array in another variable, and use them where each is appropriate.