I keep getting error "cannot implicitly convert type 'string' to 'int'" in C#.
Following is my code that is getting error
    public static void CreateOpcItems()
    {
        RsiOPCAuto.OPCItems lclItems;
        lclItems = opcGroup.OPCItems;
        globalOpcItem[1] = lclItems.AddItem("[Orex_Brain_Mill2]gStnMill2.DATA.MillTemperature", 1);
    }
    public static object GetPlcValue(string pItem)
    {
        object lclObject = new object();
        globalOpcItem[pItem].Read(1, lclObject);
    }
 
    