An excpetion in cast metho, now includes the row number