Again to avoid nulls (probably not as likely to happen as InvoiceId below)

CustomerId = value != null ? value.ToString() : null;