G
G
Grigory Psychologist2017-10-15 16:17:55
iOS
Grigory Psychologist, 2017-10-15 16:17:55

What is as! And what is it for?

Guys, another question. I decided to use the preparedforSegue method, in which I came across as! , I can not understand what it is for, I would like to understand, thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NSA-bot, 2017-10-15
@Grigori_Psiholog

It is the casting (casting) of one data type to another, if so required by the one who takes the value of this type, and if such a cast is itself possible.

A
Arman, 2017-10-15
@Arik

In the docks about optional types.. ! - take the value and do not care that it may not be,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question