By putting the square brackets there, you are type casting this as an array, so all should be well.