checked

private fun checked(rt: Class<*>, v: Any?): Any?

v if a slot of type rt can hold it, else a throw — which the caller's own catch turns into a recorded failure, so a bad value and a throwing callback share one failure path.

Exact by necessity: ByteBuddy casts the Object to the TARGET primitive's wrapper before unboxing, so an Integer never reaches a long. Wrappers being final, isInstance is that exactness for free.