code: @Override
      public int getInt(int index) {
          synchronized (lock) {
              return CBLConverter.asInteger(getMValue(internalArray, index), internalArray);
          }
      }
docs: Gets value at the given index as an int.
  Floating point values will be rounded. The value `true` is returned as 1, `false` as 0.
  Returns 0 if the value doesn't exist or does not have a numeric value.
  
  @param index the index. This value must not exceed the bounds of the array.
  @return the int value.