pub fn typed_ref(
    object: Option<&ObjectReference>
) -> Option<TypedLocalObjectReference>