Implements `to-object`
Provides better documentation.