The word fast can be used as a number of parts of speech - it can be an adjective, an adverb, a verb, and a noun.
In this sentence, however, the word fast is used as a A. noun.
The safe way to check whether I am correct is to see if there is any article before that word - and since there is (the article "a"), you can trust me I am correct. :)