docs: function (column, value, fromDatabase) {
              var colSchema, clazz = this._static;
              if (((fromDatabase && clazz.typecastOnLoad) || (!fromDatabase && clazz.typecastOnAssignment)) && !isUndefinedOrNull(this.schema) && !isUndefinedOrNull((colSchema = this.schema[column]))) {
                  var type = colSchema.type;
                  if (value === "" && clazz.typecastEmptyStringToNull === true && !isUndefinedOrNull(type) && ["string", "blob", "text"].indexOf(type) === -1) {
                      value = null;
                  }
                  var raiseOnError = clazz.raiseOnTypecastError;
                  if (raiseOnError === true && isUndefinedOrNull(value) && colSchema.allowNull === false) {
                      throw new ModelError("null is not allowed for the " + column + " column on model " + clazz.tableName);
                  }
                  try {
                      value = clazz.db.typecastValue(type, value);
                  } catch (e) {
                      if (raiseOnError === true) {
                          throw e;
                      }
                  }
              }
              return value;
          }