TI BoosterPack MKII LCD, gText printing

Greetings,

I am working on a project that involves the MSP432 microcontroller with the BoosterPack MKII.
I am having trouble displaying a variable on the LCD(128x128).

if I use

myScreen.gText(30,54,"Hello World!");

It prints fine with no variables.

But I am trying to figure out how to display a variable instead.

I was trying:
if I had a variable named counter initialized to zero as an int.

 myScreen.gText(30,54,"Hello World!: " + counter);

I also tried this variant like a printf.

 myScreen.gText(30,54,"Hello World!: %d", counter );

But that was a fail. The only reason I am using gText is because I am using the example files to learn how to do all of this, I couldn't find any direct information on this subject on the Energia site.

Should I be using a different function to display text with variables?

If it matters here are my includes

#include "Energia.h" // Core library for code-sense
#include "SPI.h" // Include application, user and local libraries
#define HX8353E 
#include "Screen_HX8353E.h"
Screen_HX8353E myScreen;

edit: im going to attempt to cast as a string

aaay, I casted the int as a string and that worked! I feel dumb for posting this question. Lesson learned.