About integer numbers downcasts in C, e.g.
An int value 000F\'E000 downcast to short or unsigned short will become E000.
shor
A cast to a smaller integer type discards the most significant (left-most as you'd write the full binary integer on paper) bits that are not present in the destination type.
An upcast to a larger integer is more complex: