Challenge: Type Casting

Test yourself and implement what you have learned so far in this challenge.

Problem Statement

In this challenge, your task is to convert the data type of an already existing variable using type casting. You are provided with a variable oldType of type Float which needs to be type cast to Double.


The input is the variable oldType.

oldType has already been declared for you.


The output will be the value assigned to newType.

Sample Input


Sample Output


Test Yourself

Write your code in the given area. Try the exercise by yourself first, but if you get stuck, the solution has been provided. Good luck!

Create a free account to access the full course.

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