cast to appropiate type in setter if type information exists, owncloud/music#88