A vector is an array, so of course you can copy over the data. But you can't assign it directly. You have to use a loop.