Can Serial.print display a memory address

I'm new to C, C++ and had not seen reinterpret_cast so I went looking.

static_cast is aware of the type of transformation. For example, when converting an int to float there are some calculations required to accomplish the transformation and static_cast provides them. While there is no transformation of the data (an address is the same no matter what it points to) static_cast moves the bit and continues on.

reinterpret_cast seems not to be aware of the type of transformation and simply moves the bits from one location to another. Using it to convert data types would give random results (eg reinterpret_cast from int to float copies the bits but the resulting float value will not equal the original int value except for the special case of 0).

discussion in Stack Overflow quickly got over my head.

Can you tell me why you used reinterpret_cast instead of static_cast?

Thanks,
Glenn