make sure we have same types for identical comparison - fix #35

Seems that type cast solves the issue.