What if you do this conversion to double within the SQL query?