cast to array just in case we dont know beforehand.