doc: add an `.as_slice` example to the cheatsheet.

doc: add an `.as_slice` example to the cheatsheet.

A lot of questions about this on IRC and stackoverflow.