Function ConstructorBasedFactory.factory

See InstanceFactory interface

T factory ();

Throws

InvalidCastException when extracted data by reference, is not of type expected by argument of aggregate's constructor