Is there a way to convert a dynamic object to an array if it is either a single object of type Foo or Foo[] ?
For example,
if dynamic is Foo then convert to Foo[] with 1 object in array
if dynamic is an array Foo[] with n number of objects then convert to Foo[] with n number of objects in array.
I feel a little stupid… Is really this you want?