Converting Lookup field from Bigint to String

Converting Lookup field from Bigint to String

Hi

I am trying to retrive a decimal value based on the user input in a look up field, using the following script:

temp = Product_Data [Product_Code == Select_product_code];
input.factor_stockin = temp.factor_product;

Error message :  In Criteria left expression is of type STRING and right expression is of type BIGINT and the operator == is not valid

Product_Code is a string, the lookup field Select_product_code is a bigint. How do I fix this?
factor_stockin and factor_product are in the same format (decimal)

Thanks in advance.