Format replies with proper types