dict: improve type checking and conversation