Without your code it is difficult to be precise, but...
I assume you are sending bytes to the port (otherwise you probably wouldn't get the first error), so try setting the byte value to the character you want to send:
byte b = (byte) 'A';
Though either of these two will do the same thing:
byte b = 0x41;
byte b = 61;
Since 'A' is ASCII character 61 decimal, or 41 hex (See an
ASCII Table[
^] for details)
Secondly, if you are sending bytes, then provided you have set the port to 8 bits per character, you can send any value in the range 0 to 255 inclusive just by setting the byte value. If no need to send a larger value, then you need to look at the equipment you are sending to, as it will probably specify exactly how it is prepared to receive it.