Cannot infer an element type because more than one type is possible. Specifying the type of the array might correct this ...