An explicit method for getting the post type of a post object