Samsung Electronics Interview Question

Java casting. if B extends A, can you do something like this? ((A) B).methodOfA