[AOTI] Fix a strict-aliasing warning (#120628)
Summary: This gets rid of an annoying compile time warning, "dereferencing type-punned pointer will break strict-aliasing rules"
Differential Revision: [D54207229](https://our.internmc.facebook.com/intern/diff/D54207229)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120628
Approved by: https://github.com/Skylion007