I'm not sure the cast to object would work here:

```php
$x = (object) ['asd' => 123]; # unknown tag: 291 (T_OBJECT_CAST): (object)
```

Please verify.

Some spacing in the brackets is missing.