Remove usages of CollectionHelpers.cast(). [1662]