id*をNSNumber*に変換したい
これを試して
unsigned int ShortValue = [(NSNumber *)idObject unsignedShortValue];
しかし、これはコンパイルではありません
Cast of an indirect pointer to an Objective-C pointer to 'NSNumber *' is disallowed with ARC
それを行う方法のアイデア。基本的に、id *オブジェクトは私のメソッドの引数になり、2番目の引数はこのid *オブジェクトの型情報になります。次に、このメソッド内で、上記のように型固有のメソッドを実行します。