Convert a sequence into an array in the original order. 