Simple type detection