toBinder: always safe.

Previously this method required the right type to pass in for proxies
or it would lead to UB behavior. Now, the right field has been exposed,
so it can be called on anything safely.

Bug: 66921961
Test: hidl_test
Test: boot and check for crashes
Change-Id: Ib1b143d8a0189156453c723ee6675be3e90b0486
2 files changed