Why can't I use Selection.GetFiltered with GameObjects?

When I look this method up it only says to use a type, but the GameObject type does not work with it. How should I write this instead so unity does not give me the error (‘GameObject’ is a type, which is not valid in the given context)?

private void Update()
    {
        foreach(GameObject g in Selection.GetFiltered(GameObject, SelectionMode.TopLevel | SelectionMode.OnlyUserModifiable | (g.tag == "Tile")))
        {

        }
   }

GameObject is a type, but not a Type object. This method needs a Type object. You need to use typeof(GameObject) which creates the Type object.

 private void Update()
 {
     foreach(GameObject g in Selection.GetFiltered(typeof(GameObject), SelectionMode.TopLevel | SelectionMode.OnlyUserModifiable | (g.tag == "Tile")))
     {
 
     }
 }

EDIT: Check comment for error. (g.tag == “Tile”) will not work as shown here