How to get results from DMN as separate value?

I am using DMN to generate variables. There are cases where I generate two variables in one condition. Is it possible to export these variables as separate process variables instead of a map? I am currently using a result variable as singleResult (Map<String, Object>). I found a way to extract a string variable (I use expression in a separate task) but i have problem with bool type variable. I also tried the script method (like here Camunda BPM: User Task Assignment based on a DMN Decision Table | Camunda) but the type of return value was not bool.