Can't read Vector2 from composite

Hello,

I’m switching from the old inmut system to the new one but after 6 tutorials and a few demo scenes I’m still not able to get it to work and getting the following error each time.

InvalidOperationException: Cannot read value of type ‘Vector2’ from composite ‘UnityEngine.InputSystem.Composites.Vector2Composite’ bound to action

public void Move(InputAction.CallbackContext context)
{
    Debug.Log(context);
    Debug.Log(context.ReadValue<Vector2>()); //Error is on this line
}

9687095--1381784--Screenshot_1.jpg

I was using System.Math but imported the package and it seems like that contains another vector2 wich doesn’t wok with the composite one. But by using System.Math instead of Math fixed everything

Fairly certain you ought to be using Unity’s UnityEngine.Vector2 struct.