Could you help explain the usage of 'as' in these two sentences?
The parents looked upon their children as their pride and joy.
People looked upon the situation as critical.
In sentence one, 'as' is a preposition since it's followed by nouns. Am I correct? Why is 'as' followed by an adjective in the second sentence?