Integer(Pointer(SomeVariable))and it's useful to calculate offsets as integers.
Agree, but your example above explains very clearly the reason we do the casting (probably memory address manipulation like on array operation, etc).
But not if somebody do this:
myInteger:= integer(myObject); //acquire address of myObject
and later to retrieve the object
myObject:= TObject(myInteger);
Your example will probably run well on 32 or 64 bit OS. But my example has caused me the initial trouble in this thread.
And that is what I think should be banned from FPC.