[NUCRDBMS-783] Add cast for non-floating point types - H2, HSQL