First version of type utils.