Create a serializable object from the position