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.