asObjectId

This HeapValue as a Long if it represents an object reference, or null otherwise.