Typecast data to JObject if it an array