Removing useless type/value checking. This is demo code.