For a smooth vegan pastry cream you can “sift” it. Pour the cream in a sifter (better if it’s a fine mesh one) and press the cream through it with a spatula.