Handled possible Oracle cast errors for longer data-types.
Added explanatory comments.