Problem at Casting a ProcessTrigger variable from 20.8 up and higher

Im trying to do this, following the RPA toolkit tutorial

On an assign:

Arguments_ProcessName=Ctype(args,ProcessStartTriggerV2) //Where //Arguments_ProcessName is of type UiPath.Core.Activities.ProcessStartTriggerV2

The issue is that says that args, is of type UiPath.Platform, while the type the forum suggests is of type UiPath.Core.Activities

If I try to use other ProcessTrigger, the variable gets null

Im attaching the xaml
Main.xaml (21.6 KB)

My Studio version is 2022.4.3
This are the dependencies
“UiPath.Excel.Activities”: “[2.12.3]”,
“UiPath.Mail.Activities”: “[1.15.2]”,
“UiPath.System.Activities”: “[22.4.1]”,
“UiPath.WebAPI.Activities”: “[1.11.1]”

HI,

I think perhaps you should use UiPath.Core.Activities.ProcessTriggerArgs instead of UiPath.Core.Activities.ProcessStartTriggerV2, as the following.

Regards