The type of the number is determined by NumericKvpParser.getBinding() . It must be assignable from Number .