added toInt cast function

afaik its better to compare dataType.id()