toString by type