use getINPUT_* getters for type check.