error" the expression code cannot be type converted to integer value" why

Line No is primary key of reservation scheduled

the cursor give error after this line

(cursor)IF cust.GET(“Sell-to Customer No.”)THEN
desc22:= cust.“Concrete No.” ;