Type check for integer, boolean while responding to read