Does Cartesian Indexing work on single values?

Thanks! The values are generated out of an external program.

Is there a universal function to convert either a scalar, or a 1-column data, or a vector to a vector?

I tried vec(), and it does not work for scalars.