Reverting removal of a cast

canScrollHorizontally was added in API level 14 to View. Adding the type
cast back into code.