sort of mock getInt for characteristic