Parsing values to int and boolean