query_report: convert type before filter