added method for conveting objects in to types that crate can store natively