typedef support for hashOf