I would probably recommend using `value.kind_of?(accessor.primitive)`. The `#===` method is in the control of the primitive, but if you make something like a proxy object it might not match `#===`, but you still want it to be treated as "kind of" the primitive.