title: How to cast Object to a specified type in Flutter
body: <p>I get a linter error but don't know how to fix it</p>
  <pre><code>final FoodScreenArguments args = ModalRoute.of(context).settings.arguments;
  </code></pre>
  <p>A value of type <code>Object</code> can't be assigned to a variable of type <code>FoodScreenArguments</code>.</p>
  <p>Try changing the type of the variable, or casting the right-hand type to <code>FoodScreenArguments</code> .</p>