[M2Doc] Access value of ownedMaxCard

Hi,
I still have problems to understand the basic mechanisms of M2Doc. I want to iterate over all properties of a class and check the cardinality. E.g.
{ m:for prop | class.containedProperties }
{ m:if prop.ownedMaxCard.value = ‘*’ }

{ m:endif }
{ m:endfor }
Accessing only prop.ownedMaxCard works fine (i.e. I get a nice toString string containing class name, some attributes and the value attribute) but when I want to access the value directly I get the error “<—Feature value not found in EClass NumericValue”.
My ugly workaround at the moment is to use String services (e.g. contains()) to check for what I’m interested in.
Kind regards
Christian