ClassCastException in FloatingActionButton
<p>got ClassCastException in android.support.design.widget.FloatingActionButton after updating com.android.support:design lib to 24.2.0. its working fine in lib version 24.1.1</p>

<pre><code> java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams
   at android.support.design.widget.FloatingActionButton$Behavior.isBottomSheet(FloatingActionButton.java:597)
   at android.support.design.widget.FloatingActionButton$Behavior.onDependentViewChanged(FloatingActionButton.java:589)
   at android.support.design.widget.FloatingActionButton$Behavior.onDependentViewChanged(FloatingActionButton.java:528)
   at android.support.design.widget.CoordinatorLayout.offsetChildToAnchor(CoordinatorLayout.java:1564)
   at android.support.design.widget.CoordinatorLayout.onChildViewsChanged(CoordinatorLayout.java:1233)
   at android.support.design.widget.CoordinatorLayout$OnPreDrawListener.onPreDraw(CoordinatorLayout.java:1812)
   at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2000)
   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1084)
   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5990)
   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
   at android.view.Choreographer.doCallbacks(Choreographer.java:580)
   at android.view.Choreographer.doFrame(Choreographer.java:550)
   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
   at android.os.Handler.handleCallback(Handler.java:739)
   at android.os.Handler.dispatchMessage(Handler.java:95)
   at android.os.Looper.loop(Looper.java:135)
</code></pre>