Error: Incompatible types:got Pointer expected TOBject lazarus / 13-General ---------------------------------------------------------------------- davesimplewear · 2009-12-04 23:18 I get an error when trying to compile,  Error: Incompatible types: got "Pointer" expected "TObject", the code that does this is as below. Quoteprocedure TjanHTMLParser.GetParsedLines(alist:TStringlist); var   s:string;   j,i:integer;   obj:TObject;   HTMLTag:THTMLTag;   HTMLParam:THTMLParam; begin   for i:= 1 to parsed.count do   begin    obj:=(parsed[i-1]); I found info regarding typecasting but I don't understand what is meant, any help would be appreciated. ---------------------------------------------------------------------- Leledumbo · 2009-12-07 03:48 I believe it happens on this line: Code: [Select]obj:=(parsed[i-1]);What's the type of parsed? I guess it's a TList or something similar that stores pointers. Perhaps you can use typecasting like this: Code: [Select]obj:=TObject(parsed[i-1]); ---------------------------------------------------------------------- davesimplewear · 2009-12-07 05:19 Thanks Leledumbo, You are correct, it does break at that point, so I will try to typecast as you suggested and see if that works.