Add Object typecaster

fixes #1