Pulled out type checking out of individual reader classes and put it into the container.