Currently, in order to get the declaring type of the `Parent` in a `ResolverDelegate`, an `unsafe` code block must be used because `Parent` is an `IntPtr`. Is there any way to avoid having to use an `unsafe` block?