Need Help Converting Delphi 2.0 Component to Delphi 4.0

Old Code:

var
  Component :TComponent;

begin
  { Try Get Active Component }
  Component := GetComponent(0);
end;

Error: Incopatable Types TComponent and TPersistent

I tried useing the IFormDesigner.GetRoot but could not get it to work,
compile correctly.

Need help BAD!!!!!!!!!
Ray