How to pass categorical data to neural network

Hi! I am working on an image classification problem. Each of the images has sex and age categorical data associated with it. I want to use CNN for extracting features from images. After that, I want to concatenate the metadata with these features and pass them to the final layer as shown below

Now the problem is since the neural network takes only numeric values, how can I pass the categorical data.