Empower interview question

how type casting works in swift