https://laravel.com/docs/8.x/collections#method-toarray
The toArray method converts the collection into a plain PHP array. If the collection's values are Eloquent models, the models will also be converted to arrays
Дальше смотрим:
https://laravel.com/docs/8.x/queries#retrieving-al...
The get method returns an Illuminate\Support\Collection instance containing the results of the query where each result is an instance of the PHP stdClass object.
Используй не фасад DB, а Eloquent для того, чтобы получить тот результат, которого ты ожидаешь.
Пример:
$aComments = Comment::where('Name', $name)
->get()
->toArray();