You do just what the error message says - use write instead of print.
You would end up with:
lcd.write(4);