Getting the Vector2 of the mouse position.

How can I get the Vector2 of the mouse position in game? Is there a way I can convert the pixel position from Input.mousePosition.x/y?

To be more clear, I need to world position, not the screen position

Vector2 mousePosition = new Vector2(Input.mousePosition.x, Input.mousePosition.y);

not working