EZP-21036: add base implementation for checkValueType()