Fix 1v70 regression where Pin was cast to int when writing to a variable