Now I understand the problem:
mutate {
convert => {
" someField" => "integer"
" someOtherField" => "integer"
}
}
"mutate convert to integer" has to be in the same pipeline together with the conditional statement. I'm using pipeline-to-pipeline communication with JSON codec in "input" and "mutate convert to integer" was in pipeline upstream of the conditional statement.