cast post type $args as array