Converts a nodelist returned by QSA to an array.