convert vector from hash to array