Type Casting

Learn how to cast an object to another type.

We'll cover the following

Introduction

In this lesson, we’ll explore the concept called type casting, where we convert an object of one type to an object of another type.

Consider the following example:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy