As instructed, removed dynamic cast on this