can you please put your LONG code into the right code brackets to make it readable? see How to use this forum - please read step 7.
can you print the full error code from your compiler. it will give you more information than this. it will tell you at which line of code, the variable that is being converted etc...