Expected data type BIGINT found dataType STRING

Expected data type BIGINT found dataType STRING

I have an application where i have a drop down field where the options are numbers 1 to 5, a current date field and a return date field, what i want to do is add the number of days selected plus the current date field and set them as the return date date field.

I had success using the addDay function and a static number 
This works:
  1. ReturnDate = input.Delivery_Date.addDay(3);
    input.Return_Date = ReturnDate.toDate();

However because i need to use a dynamic number based off a field what i actually need is this
This doesn't Work:

  1. ReturnDate = input.Delivery_Date.addDay(input.Number_Days);
    input.Return_Date = ReturnDate.toDate();

However when i do this the input from the Number_Days field is interpreted as a string and not an integer so i end up with the error below
  1. Error at line number : 1 
    Mismatch data type for function addDay at argument index 1 expected data type BIGINT found dataType STRING
I looked to see if there was a function to convert string to int but i was not able to find one, does anyone know if this is possible?
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方