Function to make const types