There's nothing new about being flexible. It really should be a way of life. For years, in the corporate world, those who remained the most flexible (open to change) usually survived most layoffs and restructurings. So long as you weren't overly "attached" to your current role there would always be a good chance to land somewhere in the organization.
But while layoffs and restructurings continue -- especially at large companies -- it is now more difficult to demonstrate your flexibility and openness to change, as most workforce reductions have completely removed the human element in the decision. I've even heard the sanitary explanation, "you're just in a bad cell on a spreadsheet" to explain "rightsizing" (another great PR word for layoff). In any case, whether by human evaluation or spreadsheet, becoming a new job seeker forces you to take on an entirely new attitude -- one of flexibility and creativity.
There is no telling how long your search might take, and in what directions you may go. Perhaps this is the perfect time to do something completely different, or to at least adjust your goals to allow you to get to where you want to be. At the very least, this is the time to consider all options; to dream a little. Who knows, perhaps you may find yourself doing something you never would have expected and having the time of your life.