@Override
    public byte[] toJavaType(Column column, Class<?> entityType, Object binary) {
        if (binary == null) return null;

        try {
            return (byte[]) binary;
        } catch (final ClassCastException ex) {
            throw new SpeedmentTypeMapperException(format(
                "Expected database input to be a byte[] but was a %s.",
                binary.getClass()
            ), ex);
        }
    }
Converts between a database type that is known to be a {@code byte[]} masked
as an {@code java.lang.Object} and a properly typed {@code byte[]}.

@author Emil Forslund
@since  3.0.13
runtime-parent/runtime-typemapper/src/main/java/com/speedment/runtime/typemapper/other/BinaryToByteArrayMapper.java