Overflow problem

Dear all,

In one of our customized form when we are pressing the submit button , we are getting the following error message

" Overflow under Type Conversion of code to code"

Where is the problem ?

Check is both code types have the same size.