converts OPC property names to numbers e.g.
'quality' to 3
ItemPropToId converts the passed Propname of a item property to an integer and returns it.