This function works as a shortcut of one of the calls:
getServiceAttr(element, attrName).toNumber()
getServiceAttr(attrName).toNumber()
getServiceAttr(), toNumber()