Added get function that can directly cast to desired type

The lines below will now both work (instead of only the first one).
tgui::EditBox::Ptr(gui.get("myEditBox"))->setText("Hello");
gui.get<tgui::EditBox>("myEditBox")->setText("Hello");