you can by saying: myarray = $ as array however for the same reasons i listed above, you should always use: myarray = selection as array instead