title: How to cast an Object to Arraylist
body: <p>I need cast an Object to Arraylist:</p>
  
  <pre><code>&lt;% Arraylist&lt;Products&gt; mypr = sesion.getAttribute("products");  %&gt;
              &lt;table class="table table-condensed"&gt;
                  &lt;tr&gt;
                      &lt;th&gt;Id&lt;/th&gt;
                      &lt;th&gt;Category&lt;/th&gt;
                      &lt;th&gt;Model&lt;/th&gt;
                      &lt;th&gt;Stock&lt;/th&gt;
                      &lt;th&gt;Price&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;%
                      for (Products xx : mypr) {
                          out.println(xx.toString() + "&lt;br&gt;");
                      }
                  %&gt;
  </code></pre>