I think you might be able to with fogstate typecasting. (I2U see the typecasting library by kingking) However, that is pretty slow and not really necessary. Instead, you should just use a unit indexing system because:
1) It will allow you to use arrays really easily to store unit data.
2) You can retrieve the corresponding unit through GetUnitById() [which is what you are trying to do]
GetHandleId() is good, but you usually end up having to use hashtables unless you subtract a high enough number to make it in the array range. (0x100000) That method is unreliable though.
Thanks again. I think I got the non-LUA UnitIndexer to work, but is using this over the LUA one a problem?
(The LUA variant required some other LUA stuff which failed installation)
I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.