Function to copy field from a Costume Module to another Module

Function to copy field from a Costume Module to another Module

Hi,

I'm trying to write a function that copies a value from a field in a Costume Module to Potentials.
I already used the same function to copy values between fields from Contacts to Potentials, and it works perfectly fine! However, for this Costume Module, it's not working. It gives me this error::

  • Data type of the argument of the function 'get' did not match the required data type of '[BIGINT]' Line Number:11

I'm putting the function below. Can you please tell me what the problem is? 
I've looked everywhere on other topics from your site but can't figure out the problem. 
Please help me. I really appreciate any help you can provide.

1. rec = zoho.crm.getRecordById("CustomModule6",ID);
2. resp = zoho.crm.getRelatedRecords("Deals","CustomModule6",ID);
3. if(resp.size() > 0)
4. {
5. for each  ele in resp
6. {
7. mp = Map();
8. mp.put("Visit_Cost",ifnull(rec.get("Visit_Cost"),""));
9. updateResp = zoho.crm.updateRecord("Deals",ele.get("id"),mp);
10. info updateResp;
11. }
12. }