How to check variable type? How do I check what type my variable of (string, integer, boolean, array, dictionary,  etc)?
To my knowledge this is not possible natively in Twig. Depending on your situation / template needs here are some useful tests

{% if foo is iterable %}

Array or object

{% if foo is same as(true) %}

Basically identical to using === in php