newline eof
Implement castToSnapshot