Efficient alternative to dynamic_cast and native embedded mode Energia devices are added.