$ 0 0 data is a variable (of type string) so maybe instance variable: long il_id then in the itemchanged event: il_id = long ( data )