@MarshalsPointer
 public static AVAudioSessionPort toObject(
     Class<AVAudioSessionPort> cls, long handle, long flags) {
   NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
   if (o == null) {
     return null;
   }
   return AVAudioSessionPort.valueOf(o);
 }
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<AVAudioSessionPort> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSString> o =
       (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
   if (o == null) {
     return null;
   }
   List<AVAudioSessionPort> list = new ArrayList<>();
   for (int i = 0; i < o.size(); i++) {
     list.add(AVAudioSessionPort.valueOf(o.get(i)));
   }
   return list;
 }