pub.assertTypeFailHandler = function (obj, type, customMsg) {
    var status = false;
    var msg;
    if (this._assertType(obj, type, customMsg)) {
      status = false;