'Converts a key to its numeric representation
:param key: numeric dict key
:raise KeyError: if key can\'t be converted to an integer
:return: a numeric key
:rtype: int'

@staticmethod
def numeric(key):

    try:
        return int(key)
    except (TypeError, ValueError):
        if (key is not None):
            raise KeyError(key)
