HHH-9138 - CastFunctionTest failing on most databases