This function transforms interval objects into data.frames.
This is not only relevant on its own, it is also needed whenever
a function need objects as a data.frame (e.g. View or cbind).
# S3 method for interval
as.data.frame(x, ...)an object of class interval.
arguments to be passed to as.data.frame.
a data.frame containing x as a character