Need help with categories in Typo

I've upgraded to Typo 4.0 and now have an issue with the Articles
Controller.

Here's the issue:

In Typo 2.6.0 I had changed the Articles Controller code like such: