[SOLVED] Instantiating a particular class constructor using reflection

I’ve already stated about the need of the (cast_type) to be compatible w/ the datatype of the class you’re attempting to instantiate: