I am trying to do something like :
if (newEntity.Fields["fieldName"].DataType is decimal) { ... }
Is there a way to do this in C#?
Use type testing directly on the field:
if (newEntity.FieldName is decimal) { ... }