fix bug of data type convertion in builtin codegen