What's the type of cmd here, that you have to convert it to a string explicitly?