Factory pattern with differing parameters

Hi,

Is there a way to approach a factory pattern where the items objects being created have different parameters. I suppose I could pass an object into the create() function and strip out the values to use in the instantiation, but that isn’t typesafe.

Is there another way?

Thanks