Grid<Object> grid = new Grid<>();
Object selected = ((SingleSelectionModel) grid.getSelectionModel()).getSelectedItem();
seems to work fine, so looking at screenshot 1 it seems like you have not imported the SingleSelectionModel class.
Also, seems that the API has changed since the thread I posted so now the correct method is .getSelectedItem().