Cast to array rather than check for array.