Starting with a base class object and calling a method with a filename as an input. The idea is to find out what's inside the file and create an object of that type (the object inherits the base class). My problem is I want this of the base class object to become this of the specific class.