float ff = 5.5f; object jf = ff; int fd = (int) jf;
here, when you put from a float into an object, the actual type that jf is a float, and you free the box marked directly in int, which is not accepted by the runtime.
so you need to unzip the contents for float first and then add it back to int.
TalentTuner
source share