Unified API for integers