DBTableField dbField = (DBTableField)currentEntity.Fields[i].MappedField;
//currentEntity is of EntityDefinition
if (dbField.TypeDefinition.DBTypeAsString != "money")
throw new NeedMoreMoneyException("Gimme Gimme");
and the dotnettype is from
currentField.DotNetType.Name;
//currentField is of type EntityFieldDefinition