Checking and Casting Data Types
Learn how to check the type of data and how to cast it into different data types.
We'll cover the following...
We'll cover the following...
Checking the Data Type
Every Powershell object automatically has an in-built method, GetType(), which can be accessed using the (.) dot operator, as demonstrated in the following example to check data types.
Similarly, in Python, we can use the type() inbuilt method to test/check the data type.