Brain fart on getting "id" from a module Map

Brain fart on getting "id" from a module Map

contactId = 5122008000000796037;
contactMap = Map();
contactId = zoho.crm.getRecordById("Contacts",contactId);
mailCode = contactId.get("Legacy_Mail_Code");
camapaignMap0 = Map();
campaignMap0 = zoho.crm.searchRecords("Campaigns","(Mail_Code:equals:" + mailCode + ")");
info campaignMap0;
campaignId = campaignMap0.get("id");
info campaignId;

ERROR:  Argument type mismatch - Found 'TEXT' but Expected '[BIGINT]' for the function 'get' Line Number:26

The info campaignMap0; line works and returns the entire map of the module record.  I have tried the following but I get the same error:

campaignId = campaignMap0.get("id").toLong();

I know I am close but I just need one of your geniuses to point me in the right direction