title: Exception: "Cannot Be cast to java.util.ArrayList" when storing ArrayList from intent
body: <p>I getting an exception <code>cannot be cast to java.util.ArrayList</code> when I try to store an ArrayList that was retrieve from a intent inside a Fragment class. </p>
  
  <p>Right now I am using intent from my adapter to pass an ArrayList to my fragment class. My fragment class will retrieve the data by using Parcelable and store it into an object so I can use the data for my fragment classes. But the issue is once it retrieves the data, it throws an exception. Is it because I'm using the wrong object to store my data?</p>
  
  <p><strong>MainAdapter class:</strong></p>
  
  <pre><code>final Intent intent = new Intent(view.getContext(), DetailActivityFragment.class);
  intent.putExtra("baking_app", mbakingAppsDataModels.get(position));
  Log.d("onClick mBDM size: ", mbakingAppsDataModels.get(position)+"");
  //intent.putExtras(args);
  view.getContext().startActivity(intent);
  </code></pre>
  
  <p><strong>Fragment class:</strong></p>
  
  <pre><code>Bundle args = getIntent().getExtras();
  ArrayList&lt;BakingAppsDataModel&gt; bakingAppsDataModels = args.getParcelable("baking_app");
  </code></pre>
  
  <p><strong>Exception:</strong></p>
  
  <pre><code>FATAL EXCEPTION: main
                                                                               Process: com.example.kavin.bakingapp, PID: 22716
                                                                               java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.kavin.bakingapp/com.example.kavin.bakingapp.ui.DetailActivityFragment}: java.lang.ClassCastException: com.example.kavin.bakingapp.Data.BakingAppsDataModel cannot be cast to java.util.ArrayList
                                                                                   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
                                                                                   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
                                                                                   at android.app.ActivityThread.-wrap11(Unknown Source:0)
                                                                                   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
                                                                                   at android.os.Handler.dispatchMessage(Handler.java:105)
                                                                                   at android.os.Looper.loop(Looper.java:164)
                                                                                   at android.app.ActivityThread.main(ActivityThread.java:6541)
                                                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                                                   at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                                                                                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
                                                                                Caused by: java.lang.ClassCastException: com.example.kavin.bakingapp.Data.BakingAppsDataModel cannot be cast to java.util.ArrayList
                                                                                   at com.example.kavin.bakingapp.ui.DetailActivityFragment.onCreate(DetailActivityFragment.java:30)
  </code></pre>