Move responsability for the assignment out of CastableObjectUnwrapper.