cast option to size_t