Your task is to read a serialized array of objects. You are given a FileInputStream, and you need to read and return the serialized Object[] array within. If a ClassCastException occurs, turn it into an IOException with the same message text.