qt_cast will now handle integers