extract types defined according to its size to become code more portable