Is it better to asInstanceOf[DWithinImpl] then?  I need to convert the Filter to a DWithinImpl so I can compute the unit conversion and thought using a match would be more proper (and safer).  It's true that the only piece calling processDWithin has already verified the filter is a dwithin, but another developer might add code which mistakenly calls processDWithin against the wrong filter type.