What is the (type) in (type)objectname.var
问题 I am going through a book on C# and have come across something that I can't seem to look up, because I don't know what it is called, or trying to search for something by description. Could some explain to me what is going on, or the meaning behind the (type) that comes before a reference to an object as in (int)objectname.variablename ? It seems like casting to me. EDIT: Since most of you are going off 'My' reference to casting when I am only guessing, and needed more code, I am including the