added static_cast to DrawText