Avoid using SELECT ... ENDSELECT statement | CAST Appmarq