Speaking? Hasta be spoken in polite form.
Writing? It depends. Assume formal (letter to host family, article etc), unless it is a letter or email sent to a (close) friend, diary entry or the like.
Generally, I would advise against using slang unless the text you are writing calls for it (email...