title: JSON Object to generic ParseFile Object, issue
body: <p>I have run in to an issue, while converting my iOS app to android.</p>
  
  <p>The database is structured such that there are "stations", these stations can have multiple images attached, in the parse database, the images are an array of imagePointers.</p>
  
  <p>When i wanted to get the images out in iOS here is what i did:</p>
  
  <p>stations = object in this case</p>
  
  <pre><code>// Get a single image
  if ([[object objectForKey:@"imagePointers"] objectAtIndex:0] != [NSNull null]) {
      PFFile *imageFile = [[[object objectForKey:@"imagePointers"] objectAtIndex:0] objectForKey:@"image"];
      cell.coverImageView.file = imageFile;
      [cell.coverImageView loadInBackground];
  }
  </code></pre>
  
  <p>Its pretty simple, i just lift the imagePointers array and get objectAtIndex0, then i cast it to a parse file.</p>
  
  <p>But i can't do this in android, here is what i have atm:</p>
  
  <pre><code>    JSONArray imagePointers = thisStation.getJSONArray("imagePointers");
      try {
          JSONObject indexImage = imagePointers.getJSONObject(0);
      } catch ( Exception e ) {
          JSONObject indexImage = null;
      }
  </code></pre>
  
  <p>Here i get the object at index 0 as a JSONObject, i cannot use this in a ParseFile Object, since i need to cast it as a generic type ParseFile.</p>
  
  <p>How do i do this? Or is my approach completely incorrect?</p>