I am trying to up-cast the subclass object but it is not working. The following program compiles without any errors.
VideoStreamModel model = VideoStreamModel