Save WP_Query results to a variable

$the_query = new WP_Query( array(...) );
$posts = $the_query->get_posts();