Automatic conversion for resources providers

Close #1