Make MojObject types casting via rtti

Make MojObject type casting via dynamic_cast

Open-webOS-DCO-1.0-Signed-off-by: Maksym Sditanov <msditanov@luxoft.com>

Change-Id: I8b80de9c60d8e43642d151ebd503892d245db758