Get ostype method