Quicker getType, thanks Tavriets