Check the type