Adds primitive boxing for Object function