title: How do i cast char to integer while querying in django ORM?
body: <p>Recently started using Django ORM.I want to execute this query </p>
  
  <pre><code> select student_id from students where student_id like "%97318%" order by CAST(student_id as UNSIGNED) desc;   
  </code></pre>
  
  <p>where student_id is a CharField which I want as integer for querying.
  I tried with </p>
  
  <pre><code>  students.objects.filter(student_id__contains "97318").order('-student_id')
  </code></pre>
  
  <p>works fine. But don't know and couldn't find how to cast "student_id" to int like the actual MySQL query mentioned above with "Django ORM". should I use raw query or is there a way out?
  Let me know your suggestions.</p>