There are some great tutorials / notes on the Tutorials page:
Serial communication happens in the form of bytes being transferred back and forth, so bigger / more complex data structures like ints, arrays or strings will need to be broken down or somehow represented using a stream of bytes.