The issue was in the configuration file for the entity have to make changes there as well because I was changing in a field that was mentioned as decimal in configuration and string in entity.
public class InvoiceConfiguration : IEntityTypeConfiguration<Invoice>