Custom field type to store the managed object as a value

Is it possible to create a custom field type that stores a managed object as a value? If so, tips on how to do it (sp 2013)?

Thank you