Shortfix for dynamic_cast; removed unused template func