Added support to parse booleans or integers.