[WP] Parent type fix. Removing casts.