I would prefer to use statically typed language when I develop embedded software.
Memory efficiency is very important in embedded programming. In my opinion, if you depend on dynamic casting, memory leak might occur and more bugs can appear compared to using statically typed language.