How should I file my taxes when going from F1 to H1B

I was on F1 since my arrival i.e 07/25/2013. My H1 B was approved on 10/01/2017. 

Details of my stay in the U.S:

2013: 159 days

2014: 347 days

2015: 365 days

2016: 332 days

2017: 365 days.

Should I be filing taxes for 2017 as a Resident Alien or a Non resident alien?

Can I go for the First Year Choice method?

Thanks