Is cooking beans or any other food in metal cans safe?
The interior of modern cans are a heat resistant plastic (remember they pressure cook the cans at the factory), and will be fine for heating liquid things

Just don't try using it to fry stuff!