phql: fix issue 2229
phql: added tests for CAST and CONVERT functions
Merge pull request #2307 from maxgalbu/issue2229

fix issue #2229 (cast and convert not working)