Problem Instancing my GameManager following a Brackeys Course

Hey All,

I’ve been following Brackeys course “How to make a 2D platformer”, so far so good. But in Lesson 12 He creates an Instance of his gameManager to be able to use it in other scripts and classes. I’ve basically copied his lesson letter by letter, only changing variable names along the way. And i’m getting this error :

Cannot implicitly convert type ‘UnityEngine.GameObject’ to ‘gameManager’

heres my code :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class gameManager : MonoBehaviour
    public static gameManager _gameManager;

    void Start()
        if (_gameManager == null)
            _gameManager = GameObject.FindGameObjectWithTag("gameMan");

Am i doing something wrong, or is this a Unity2018.1 problem (the course is from 2014)?

Thanks in advance,

_gameManager is of type gameManager, but when you do GameObject.FindGameObjectWithTag it returns a GameObject, so you need to GetComponent<gameManager>