Resolve false positives of unnecessary_cast for non-decimal integers This PR resolves false positives of `unnecessary_cast` for hexadecimal integers to floats and adds a corresponding test case. Fixes: #5220 changelog: none