Type Casting Operator

This lesson teaches the type casting operator in Rust.

What Is Type Casting?

Type casting is when you convert the data type of the variable to some other data type.

Type Casting in Rust

In Rust, typecasting is done using the as keyword followed by the desired data type of the variable or value.

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

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