How do you convert a list to a NumPy array in Python? Can you provide some examples of how this can be done?