Yeah, I'm not sure if there is a better way to do it. Solr returns results as a Map[String, Any] from field name to the field value. Before this preq, all of our fields were strings, so we could just cast it to Map[String, String]. Now that confidence is a double, I have to cast the values in the map individually.