Safer casting.

data from getLastCustomNonConfigurationInstance is now an array