Add functionality to Objects.checkTypes