As works in the same way as example 2 - comparing two things using either the word "like" or the word "as" is called making a simile ("As big as an elephant"). It may be better to use the word "as" for this to stop confusion with example 1.