Added test for type casting using execute instead of query