Se, quindi, assegno ad A il seguente valore:

A=0xD2;

dopo il casting avrò:

B=0xD