Fixed bad safety check

I think you intended to cast via the "as" operator and check that the cast works.  You checked the wrong variable.  If the file is an MP3 then this check will pass.