Move mediafile cast logic to storage style

StorageStyle.get should return a python builtin type.
This amends 5716cd10240a2bda57abfa8d3bc700b0d2a89643