Fix type conversions for node.value.