insertOrderedList: bug fix: add type casts

PTAL