I'm guessing when substituting a class this should be the 'base type' not the reference.