Description
NumberHelper converts smaller number types like short/byte to int after applying a function to them. It was thought that this was just the way things worked on the JVM but all we needed to do was cast to the appropriate type. Didn't want to fix this along existing release branches because it could create some subtle breaking change in equality.