Add feature for case casting in query returns