Avoid runtime type checks.

In most cases the relocation type implies the object word size and
endianness.