Safer handling of downcasting
Added function for converting dictionary values to Strings in Accounts Client