Downcasting wondering in c++

downcasting c#
downcasting in java
c# cast child to parent
java downcasting best practices
c# downcast generic type
c# cast to base class
downcasting interface java
what is the use of upcasting and downcasting in java