Hello @Anwerhussainch,
Welcome to the Wefugees community!
As a very similar question has previously been asked and answered on our platform, please have **** :-)
You can find the answer here:
Asylum to Canada While on transit
Also, have a **** at this website by the Canadian government about "Claiming Asylum in Canada - what happens?":
https://***.canada.ca/en/immigration-refugees-citizenship/news/2017/03/claiming_asylum_incanadawhathappens.html
Please note that flying to Canada requires a visa (also check the expiry date of your passport):
"Holders of Alien’s passport and Stateless individuals need a visa to visit or transit Canada"
Source: https://***.canada.ca/en/immigration-refugees-citizenship/services/visit-canada/entry-requirements-country.html
Here is more information on how to get a visitor's visa:
https://***.canada.ca/en/immigration-refugees-citizenship/services/visit-canada/apply-visitor-visa.html
I hope these sources help. Of course you can reach out to the community again if you have any further questions!
All the best,
Isa