public void addExport(IExportEntry exportEntry) { if (exportEntry is ME2ExportEntry) { addExport(exportEntry as ME2ExportEntry); } else { throw new FormatException("Cannot add export to an ME2 package that is not from ME2"); } }