I've got a lot of places where I store an integer in the object list for a combobox like this:
SomeComboBox.Items.AddObject('Sample',tObject(Y));
And then retrieve it by casting it the other way...
Y:=LongInt(SomeComboBox.Items.Objects
That's always worked well but after updating Lazarus and Free Pascal I now get a message
Error: Illegal conversion "TObject" to "LongInt" when compiling. Is it a setting I can't seem to find or is this no longer allowed?