Check out example codes for "static_cast c++". It will help you in understanding the concepts better.

Code Example 1

static_cast conversion
 C++ C++ language Expressions 
Converts between types using a combination of implicit and user-defined conversions.

Syntax
static_cast < new_type > ( expression )		
Returns a value of type new_type.

Code Example 2

struct B { };
struct D : B { };
D d;
B& br = d;
static_cast<D&>(br); // lvalue denoting the original d object

Learn ReactJs, React Native from akashmittal.com