title: Error - java.sql.Timestamp cannot be cast to java.sql.Date in JFreeChart
body: <p>While i'm retrieving data from my database to add to a chart using JFreeChart I get the error:</p>
  
  <pre><code>java.sql.Timestamp cannot be cast to java.sql.Date
  </code></pre>
  
  <p>I have four columns the first three are retrieved properly using a case but while going through the final column it goes to the correct case:</p>
  
  <pre><code>case Types.TIMESTAMP: {
  </code></pre>
  
  <p>But then the error occurs on this part:</p>
  
  <pre><code>Date date = (Date) resultSet.getObject(column);
  </code></pre>
  
  <p>The data within the database is formatted like this (HH,MM,SS).</p>
  
  <p>Edit - 
  Also would like to add this class is included with the JFreeCharts API - JDBCCategoryDataset.java</p>