code: function CastError (type, value) {
    NeopreneError.call(this, 'Cast to ' + type + ' failed for value "' + value + '"');
    Error.captureStackTrace(this, arguments.callee);
    this.name = 'CastError';
    this.type = type;
    this.value = value;
  }
docs: Casting Error constructor.
  
  @param {String} type
  @param {String} value
  @inherits NeopreneError
  @api private