Added protection that attribute cast to String[] is.