clean unnecessary cast
small fix for line rendering in dx9