If I have a variable that has been set like -

var = 5|0x00

How can I get both the 5 and the 0x00 ??