Стандартными средствами никак. С помощью грязных хаков можно, но не факт, что они будут работать всегда и во всех JVM:
class AddressExtractor {
    public long pointerValue;
}
public class DirtyHack {
    public static void main(String[] args) throws Exception {
        AddressExtractor addressExtractor = new AddressExtractor();
        Class<? extends AddressExtractor> clazz = addressExtractor.getClass();
        Field field = clazz.getDeclaredField("pointerValue");
        Field type = Field.class.getDeclaredField("type");
        AccessibleObject.setAccessible(new AccessibleObject[]{field, type}, true);
        type.set(field, Object.class);
 
        String s = "test";
        field.set(addressExtractor, s);
        System.out.println(Long.toHexString(addressExtractor.pointerValue));
    }
}