extract base class from num declare