Dynamically Change Barcode(Data Code)

I need to know if it is possible to change the Barcode ->Data ->Code at run time. I tried this code:
IWCGJQBarCode2.DataCodaBar.Code:='12234';
The Error I am getting: Invalid Class Type Cast
IWCGJQBarCode2 is displaying correctly but I need to change its code at run time, any help?
IWCGJQBarCode2.DataCodaBar.Code:='12234';
The Error I am getting: Invalid Class Type Cast
IWCGJQBarCode2 is displaying correctly but I need to change its code at run time, any help?