How to type cast programmatically intialized class
<p>I'm trying to programmatically initialize a class and add it to a list.  I don't know how to type <code>workflowClass</code> so that it <code>extends BaseWorkflow</code> so the list will accept it.  Currently it says I can't add an <code>Object</code> when it's expecting <code>? extends BaseWorkflow</code>.</p>

<pre><code>private static List&lt;? extends BaseWorkflow&gt; workflowList = new ArrayList&lt;BaseWorkflow&gt;();

/**
 * Initialize the production line
 */
public static void init() {
    //load active workflows into memory
    WorkflowService workflowService = (WorkflowService) ApplicationContextProvider.getApplicationContext().getBean("workflowService");
    for (Workflow workflow: workflowService.findActive()) {
        try {
            Class&lt;?&gt; clazz = Class.forName(workflow.getClassName());
            Object workflowClass = clazz.newInstance();
            workflowList.add(workflowClass);
</code></pre>
