Serial LCD

I am using a serial LCD linked below.

https://www.zeroohm.com/lcd-serial-16x2-white-on-black-5v/?search=serial%20LCd

What command can I use to display the content of the variable x ?

int x =1; 
#include <SoftwareSerial.h>
SoftwareSerial mySerial(22,23);   /////first one doesnt matter 

void setup()
{
  mySerial.begin(9600); 
  delay(500); 
}

void loop()
{
  mySerial.write(254); 
  mySerial.write(128);
  mySerial.write("                "); // clear display
  mySerial.write("                ");

  mySerial.write(254); // move cursor to beginning of first line
  mySerial.write(128);
 
  mySerial.write(x);

  while(1); // wait forever
}/code]

mySerial.print(x);Would be a good guess.

Thanks. it works.