CGRect を配列の要素にするには・・・

どうも CGRect には泣かされる。CGRect を配列の要素にしようと思い

[mutableRects addObject:textObservation.boundingBox];

とすると以下のエラー

Sending 'CGRect' (aka 'struct CGRect') to parameter of incompatible type 'id _Nonnull’

 

仕方がないので、次のようにするとエラーにならなかった。
[mutableRects addObject:[NSValue valueWithCGRect:textObservation.boundingBox]];

 

う・・・これめんどくさい。