boolean casting for read_frame