prevent None struct to be used in to_io