@Test
public void testCast() throws Exception {

    //given
    final byte b0 = (byte) 0x8F;
    final byte b1 = 0x7F;
    final byte b2 = (byte) 0xF7;
    final byte b3 = 0x00;
    final byte b4 = 0x01;
    final long pointer = byteArrayAsPointer(b0,
                                            b1,
                                            b2,
                                            b3,
                                            b4);
    try (final Pointer<Void> voidPointer = wrap(pointer)) {
        //when
        final int integer = (int) voidPointer.address;
        //then
        assertThat(integer).isEqualTo((int) pointer);
    }
}