Get `uid` as an int, instead of hex string?

Not possible. You should convert it on your end if so.