title: Typecast ArrayList to ResponseEntity
body: <p>I am facing an issue in typecasting an ArrayList to ResponseEntity. I make a native query call to the DB to fetch the resultset. Once I get the resultset, I typecast the arraylist to ResponseEntity so that I get the httpStatusCode to build my response. But typecasting throws me an error.
  Below is the code snippet</p>
  <pre><code>@Override
  public ResponseEntity&lt;List&lt;Student&gt;&gt; getAllStudentEnquiry() {
  logger.info(&quot;Getting all student enquiry details&quot;);
  ResponseEntity&lt;List&lt;SmsEnquiry&gt;&gt; studentList= (ResponseEntity&lt;List&lt;SmsEnquiry&gt;&gt;) smsEnquiryRespository.findAll();
  return studentList;
  }
  </code></pre>
  <p><strong>All I want from this response is the httpStatus to decide on the response that I build.
  Pls help</strong></p>