Hash collision problem solved.
Tuple cast for std compliancy