The first instance returns an array of the specified type (according to the API docs), which in this case will be an array of type String. Thus you do not need to cast it before assigning it to a String array.
The second instance returns an array of type Object. You will need to cast this reference to String[] if you want to assign it to a String array.
Don't get me started about those stupid light bulbs.