DO NOT MERGE: Fix array casting bug am: e007303822

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11971856

Change-Id: If540972b625345139eae68d1bca98675fdf63813