I am getting the error "System.InvalidCastException:'Unable to cast object of type 'ArcGIS.Core.Data.Field' to type 'System.IConvertible'. I am pretty sure this worked for me before, but I got this error when I applied it to the "Shape_Area" field. If anyone encountered the same problem, how did you resolve it? Thanks!
Field areaField = modelSoilsDef.GetFields().FirstOrDefault(x => x.Name.Contains("Shape_Area"));
var Area = Convert.ToDouble(areaField);